import * as bcrypt from 'bcrypt';

const saltOrRounds = 10;

export const getPassword = async (password: string): Promise<string> => {
  // 用bcrypt 加密得到密码
  const hashPassword = await bcrypt.hash(password, saltOrRounds);
  return hashPassword;
};
